package com.ok.api.client;

import com.ok.api.client.fallback.IntegralFallback;
import com.ok.api.client.fallback.UserFallback;
import com.ok.api.domain.po.OkAddr;
import com.ok.api.domain.po.OkUser;
import com.ok.common.domain.po.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName UserClient
 * @Description TODO
 * @Author hw
 * @Date 2024/5/12 22:34
 */
@FeignClient(value = "ok-user", fallbackFactory = UserFallback.class)
public interface UserClient {
    /*
    用户信息查询
     */
    @GetMapping("/user/info")
    public Result<OkUser> info(@RequestParam Long id);

    /*
    地址信息查询
     */
    @GetMapping("/addr/info")
    public Result<OkAddr> infoAddr(@RequestParam Long id);
}
